<%--
  Created by IntelliJ IDEA.
  User: cjrh2
  Date: 2025/5/26
  Time: 20:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <script src="jquery-3.7.1.min.js"></script>
    <title>Title</title>
</head>
<body>


<button id="btn">getjson</button>

<script>

    // getJSON 默认发get
    $("#btn").click(() => {
        //querystring url?key=value&key=value
        var data = {'name': 'root', 'age': 30, 'email': 'root@qq.com'};
        $.getJSON("http://localhost:8080/jquery/mse", data, function (result) {
            console.log(result);
        })
    })

</script>
</body>
</html>
